package com.xyoto.takeawayUser.enums;

/**
 * @author coderFu
 * @create 2021/10/1
 *通用返回枚举
 */

public enum CarouselEnum implements Code {


    SAVE_CAROUSEL_FAIL(1140, "新增轮播图失败"),
    NOT_CAROUSEL_FILE(1141, "未识别到轮播图文件"),
    SHOW_ORDERS_ERROR(1142, "展示顺序错误")
    ;




   private int code;
   private String msg;
    CarouselEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }


    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
